Report Signal Table
To create a signal table use TPTReport.SignalTable()
or TPTReport.SignalTraceTable()
. There are two ways to add signals to the table. Either directly choose the signals to add using signalTable.add([signal1,signal2,...])
or indirectly by using a filter TPTReport.Filter()
.
This example explains how to add sorting criteria to the table. The table will be sorted by name in ascending order. #creates a new signal table sig_table = TPTReport.SignalTable() sect.add(sig_table) #add signal sig_table.add([light_switch,light_intensity,headlight]) #add sorting criterion sort_model = TPTReport.SortModel() sort_model.addCriterion(TPTReport.CRITERION_NAME, TPTReport.ASCENDING) sig_table.applySortModel(sort_model) |